<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'SSQ/css/SSQ_check_bones.css' %}">
<head>
    <title>双色球中奖信息查询</title>
</head>
<body>
<div class="container">
    <!-- Navigation -->
    <header>
        <a href="">
            <h4 class="logo">双色球中奖信息查询</h4>
        </a>
        <nav>
            <ul>
                <li><a href="/">主页</a></li>
                <li><a href="/SSQ/history_data">历史开奖数据</a></li>
                {#            <li><a href="/SSQ/check_bonus">中奖查询</a></li>#}
                <li><a href="/SSQ/note">投注</a></li>
            </ul>
        </nav>
    </header>

    <form align="center" action="./" method="post">
        {% csrf_token %}
        <br>
        <div align="center"><span>请输入查询期号</span><input type="text" name="note_phase"/>
            <input type="submit" value="开始查询" class="default" name="submit_check">
            <input type="submit" value="查询所有中奖信息" class="default" name="submit_all_check"></div>
        <br>
        <hr/>

        </p>
        <table align="center" border="1" name="bonus_table"> <!------------把border赋值为0，这个表格没有边框-->
            <tr>
                <th>期数</th>
                <th>红球1</th>
                <th>红球2</th>
                <th>红球3</th>
                <th>红球4</th>
                <th>红球5</th>
                <th>红球6</th>
                <th>蓝球</th>
                <th>奖项</th>
            </tr>

            {% for lott in lottery %}
                <tr>
                    <td>{{ lott.phasenum }}</td>
                    <td class="red">{{ lott.red1 }}</td>
                    <td class="red">{{ lott.red2 }}</td>
                    <td class="red">{{ lott.red3 }}</td>
                    <td class="red">{{ lott.red4 }}</td>
                    <td class="red">{{ lott.red5 }}</td>
                    <td class="red">{{ lott.red6 }}</td>
                    <td class="blue">{{ lott.blue }}</td>
                    <td>{{ lott.bonuslevel }}</td>

                </tr>
            {% endfor %}

        </table>
        <div align="center">{{ phase_num }}期共投{{ note_num }}注，中奖{{ win_note_num }}注，中奖金额共 <span
                style=" color:red"> {{ total_bonus }}元 </span></div>
        <div align="center"><span style="color: red;">{{ error_info }}</span></div>
        <br>
        <hr/>

        <table class="bonusinfo" align="center" name="intro_table"> <!------------把border赋值为0，这个表格没有边框-->
            <tr>
                <th class="bonusinfo">奖级</th>
                <th class="bonusinfo">中奖条件</th>
                <th class="bonusinfo">{{ phase_num }}单注奖金</th>
            </tr>
            <tr>
                <td>一等奖</td>
                <td>6+1</td>
                <td>{{ firstbonus }}</td>
            </tr>
            <tr>
                <td>二等奖</td>
                <td>6+0</td>
                <td>{{ secondbonus }}</td>
            </tr>
            <tr>
                <td>三等奖</td>
                <td>5+1</td>
                <td>3000</td>
            </tr>
            <tr>
                <td>四等奖</td>
                <td>5+0,4+1</td>
                <td>200</td>
            </tr>
            <tr>
                <td>五等奖</td>
                <td>4+0,3+1</td>
                <td>10</td>
            </tr>
            <tr>
                <td>六等奖</td>
                <td>2+1,1+1,0+1</td>
                <td>5</td>
            </tr>


        </table>


        <!--{{ form }}-->

    </form>
</div>
</body>
</html>